package cz.muni.fi.pa165.service;

import cz.muni.fi.pa165.dto.PackageDTO;

/**
 *
 * @author Jakub Janco
 */
public interface PackageService {
    
    
    /**
     * Remove package from database
     * @param pkg 
     * @throws IllegalArgumentException if parameter is null the id attribute is null
     */
    public void removePackage(PackageDTO pkg);
    
    /**
     * Return package by his ID
     * @param id Id of package to search
     * @throws IllegalArgumentException if parameter is null
     * @return Package with given ID, null if package with given ID is not in database
     */
    public PackageDTO getPackageById(Long id);
    
}
